# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=user-managerd
pkgver=0.5.3
pkgrel=0
pkgdesc="Daemon for handling Sailfish OS device users"
url="https://github.com/sailfishos/user-managerd"
arch="all"
license="BSD-3-Clause"
depends_dev="qt5-qtbase-dev libuser-dev sailfish-access-control elogind-dev libmce-qt-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://github.com/sailfishos/user-managerd/archive/$pkgver/user-managerd-$pkgver.tar.gz"

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="dcc889155a8ffb6c762659e0aee859a630b14cc02a195562121174b2677e7ba81c7a35522cf45f4a0ec3c3f17a1ecf356620f2087a85bd20cbc737f90cf5bbf5  user-managerd-0.5.3.tar.gz"
